import settings from '../setting'
import { ref } from 'vue'
const mixin = {
    data() {
        let test = () =>{

        }
        return {
            globalUrl: settings.globalUrl, //这样就能直接用了
            globalData:{
                topicObj: {
                    docking_add: {type: 'success',title: '有新的企业融资申请',message: '',url:'docking',params:{}},
                    docking_verify: {type: 'success',title: '企业融资申请审核已通过',message: '',url:'docking',params:{}},
                    fault_add: {type: 'success',title: '有新的设备报修',message: '',url:'fault',params:{}},
                    fault_complete: {type: 'success',title: '设备报修已完成',message: '',url:'fault',params:{}},
                    repair_add: {type: 'success',title: '有新的物业报修',message: '',url:'repair',params:{}},
                    repair_complete: {type: 'success',title: '物业报修已完成',message: '',url:'repair',params:{}},
                    inspection_complete: {type: 'success',title: '巡检已完成',message: '',url:'inspection',params:{}},
                    security_complete: {type: 'success',title: '安保工单已完成',message: '',url:'security',params:{}},
                    cleaning_complete: {type: 'success',title: '保洁工单已完成',message: '',url:'cleaning',params:{}},
                    customer_complete: {type: 'success',title: '客服工单已完成',message: '',url:'customer',params:{}},
                    news_verify_yes: {type: 'success',title: '资讯审核已通过',message: '',url:'news',params:{}},
                    news_verify_no: {type: 'error',title: '资讯审核未通过',message: '',url:'news',params:{}},
                    activity_sign: {type: 'success',title: '有新的活动预约',message: '',url:'life',params:{tabname:'activity'}},
                    order_sign: {type: 'success',title: '有新的订水订餐',message: '',url:'life',params:{tabname:'order'}},
                    car_sign: {type: 'success',title: '有新的班车预约',message: '',url:'life',params:{tabname:'car'}},
                    room_sign: {type: 'success',title: '有新的会议室预约',message: '',url:'life',params:{tabname:'room'}},
                    offline: {type: 'success',title: '更新权限',message: '',url:'',params:{}},
                    talk_train: {type: 'success',title: '有新的培训课程咨询',message: '',url:'',params:{tabname:''}},
                    talk_banking: {type: 'success',title: '有新的金融产品咨询',message: '',url:'',params:{tabname:''}},
                    talk_insurance: {type: 'success',title: '有新的保险产品咨询',message: '',url:'',params:{tabname:''}},
                },
                sexAry: [
                    {value:"0",text:"未知"},
                    {value:"1",text:"男",color:'base-color',label:'label-btn-primary'},
                    {value:"2",text:"女",color:'base-color',label:'label-btn-pink'}
                ],
                sourceAry: [
                    {value:"2",text:"管委会",label:'label-btn-other'},
                    {value:"4",text:"园区",label:'label-btn-success'},
                    {value:"8",text:"企业",label:'label-btn-primary'},
                    {value:"16",text:"机构",label:'label-btn-warning'}
                ],
                sourceAry1: [
                    {value:"4",text:"园区",label:'label-btn-success'},
                    {value:"8",text:"企业",label:'label-btn-primary'},
                ],
                stateTypeAry:[
                    {value:"0",text:"停用",color:'gray-color',label:'label-btn-error'},
                    {value:"1",text:"正常",color:'success-color',label:'label-btn-success'}
                ],
                ideaStateAry:[
                    {value:"0",text:"未回复",color:'warning-color',label:'label-btn-warning'},
                    {value:"1",text:"已回复",color:'success-color',label:'label-btn-success'}
                ],
                
                verifyTypeAry:[
                    {value:"0",text:"未审核",color:'warning-color',label:'label-btn-warning'},
                    {value:"1",text:"已审核",color:'success-color',label:'label-btn-success'}
                ],
                verifyTypeAry2:[
                    {value:"0",text:"待审核",color:'warning-color',label:'label-btn-warning'},
                    {value:"1",text:"通过",color:'success-color',label:'label-btn-success'},
                    {value:"2",text:"拒绝",color:'danger-color',label:'label-btn-error'}
                ],
                timestateAry: [
                    {value:"0",text:"尚未开始",color:'gray-color',label:'label-btn-warning'},
                    {value:"1",text:"进行中",color:'base-color',label:'label-btn-primary'},
                    {value:"2",text:"已结束",color:'gray-color',label:'label-btn-info'},
                    {value:"3",text:"完成",color:'success-color',label:'label-btn-success'}
                ],
                ismeAry: [
                    {value:"1",text:"发布者",color:'base-color',label:'label-btn-primary'},
                    {value:"2",text:"非布者",color:'base-color',label:'label-btn-info'},
                ],

                industryList:[
                    { "value": 100000000, "text": "互联网/IT/电子/通信"}, 
                    { "value": 400000000, "text": "房地产/建筑" }, 
                    { "value": 300000000, "text": "金融业" }, 
                    { "value": 1200000000, "text": "教育培训/科研" }, 
                    { "value": 900000000, "text": "广告/传媒/文化/体育" }, 
                    { "value": 1300000000, "text": "制药/医疗" }, 
                    { "value": 700000000, "text": "批发/零售/贸易" }, 
                    { "value": 500000000, "text": "制造业" }, 
                    { "value": 1600000000, "text": "汽车" },
                    { "value": 1000000000, "text": "交通运输/仓储/物流" }, 
                    { "value": 800000000, "text": "专业服务" }, 
                    { "value": 1500000000, "text": "生活服务" },
                    { "value": 1100000000, "text": "能源/环保/矿产" }, 
                    { "value": 1400000000, "text": "政府/非盈利机构" }, 
                    { "value": 600000000, "text": "农/林/牧/渔" }
                ],
                completeAry: [
                    {value:"",text:"总人数",color:'base-color',label:'label-btn-info'},
                    {value:"0",text:"待确认",color:'warning-color',label:'label-btn-warning'},
                    {value:"1",text:"已确认",color:'success-color',label:'label-btn-success'},
                    {value:"2",text:"拒绝",color:'danger-color',label:'label-btn-error'},
                ],
                companyTypeList:[
                    { text:"类型一", value:0},
                    { text:"类型二", value:1}
                ],
                operatingStatusList:[
                    { text:"经营状态一", value:0},
                    { text:"经营状态二", value:1}
                ],
                yesOrNoList:[
                    { text:"否", value:0},
                    { text:"是", value:1}
                ],
                nationList:[
                    {value:1 ,text:'汉族'},
                    {value:2 ,text:'蒙古族'},
                    {value:3 ,text:'回族'},
                    {value:4 ,text:'藏族'},
                    {value:5 ,text:'维吾尔族'},
                    {value:6 ,text:'苗族'},
                    {value:7 ,text:'彝族'},
                    {value:8 ,text:'壮族'},
                    {value:9 ,text:'布依族'},
                    {value:10,text:'朝鲜族'},
                    {value:11,text:'满族'},
                    {value:12,text:'侗族'},
                    {value:13,text:'瑶族'},
                    {value:14,text:'白族'},
                    {value:15,text:'土家族'},
                    {value:16,text:'哈尼族'},
                    {value:17,text:'哈萨克族'},
                    {value:18,text:'傣族'},
                    {value:19,text:'黎族'},
                    {value:20,text:'傈僳族'},
                    {value:21,text:'佤族'},
                    {value:22,text:'畲族'},
                    {value:23,text:'高山族'},
                    {value:24,text:'拉祜族'},
                    {value:25,text:'水族'},
                    {value:26,text:'东乡族'},
                    {value:27,text:'纳西族'},
                    {value:28,text:'景颇族'},
                    {value:29,text:'柯尔克孜族'},
                    {value:30,text:'土族'},
                    {value:31,text:'达翰尔族'},
                    {value:32,text:'么佬族'},
                    {value:33,text:'羌族'},
                    {value:34,text:'布朗族'},
                    {value:35,text:'撒拉族'},
                    {value:36,text:'毛南族'},
                    {value:37,text:'仡佬族'},
                    {value:38,text:'锡伯族'},
                    {value:39,text:'阿昌族'},
                    {value:40,text:'普米族'},
                    {value:41,text:'塔吉克族'},
                    {value:42,text:'怒族'},
                    {value:43,text:'乌孜别克族'},
                    {value:44,text:'俄罗斯族'},
                    {value:45,text:'鄂温克族'},
                    {value:46,text:'德昂族'},
                    {value:47,text:'保安族'},
                    {value:48,text:'裕固族'},
                    {value:49,text:'京族'},
                    {value:50,text:'塔塔尔族'},
                    {value:51,text:'独龙族'},
                    {value:52,text:'鄂伦春族'},
                    {value:53,text:'赫哲族'},
                    {value:54,text:'门巴族'},
                    {value:55,text:'珞巴族'},
                    {value:56,text:'基诺族'},
                ],
                eduList:[
                    {value:"1" ,text:'博士' ,t:'博士'},
                    {value:"2" ,text:'MBA/EMBA' ,t:'MBA'},
                    {value:"3" ,text:'硕士' ,t:'硕士'},
                    {value:"4" ,text:'本科' ,t:'本科'},
                    {value:"5" ,text:'大专' ,t:'大专'},
                    {value:"6" ,text:'中专/中技' ,t:'中专'},
                    {value:"7" ,text:'高中' ,t:'高中'},
                    {value:"8" ,text:'初中及以下' ,t:'初中'},
                ],
                salaryAry:[
                    {value:[0,4000],text:"4千以下"},
                    {value:[4000,6000],text:"4千~6千"},
                    {value:[6000,8000],text:"6千~8千"},
                    {value:[8000,10000],text:"8千~1万"},
                    {value:[10000,15000],text:"1万~1.5万"},
                    {value:[15000,25000],text:"1.5万~2.5万"},
                    {value:[25000,35000],text:"2.5万~3.5万"},
                    {value:[35000,50000],text:"3.5万~5万"},
                    {value:[50000,9999999999],text:"5万以上"},
                ],
                workyearAry:[
                    {value:[0,1],text:"1年以下"},
                    {value:[1,3],text:"1～3年"},
                    {value:[3,5],text:"3～5年"},
                    {value:[5,10],text:"5～10年"},
                    {value:[10,200],text:"10年以上"},
                ],
                workyearAry1:[
                    {value:1,text:"1年"},
                    {value:2,text:"2年"},
                    {value:3,text:"3年"},
                    {value:4,text:"4年"},
                    {value:5,text:"5年"},
                    {value:6,text:"6年"},
                    {value:7,text:"7年"},
                    {value:8,text:"8年"},
                    {value:9,text:"9年"},
                    {value:10,text:"10年及以上"},
                ],
                jobTypeList:[
                    { text:"全职", value:0,label:'label-btn-primary'},
                    { text:"兼职", value:1,label:'label-btn-success'},
                ],
                subjectTypeList:[
                    { text:"选择题", value:0,label:'label-btn-primary'},
                    { text:"判断题", value:1,label:'label-btn-success'},
                ],
                houseTypeList:[
                    { text:"空置", value:0,label:'label-btn-error'},
                    { text:"预定租", value:1,label:'label-btn-warning'},
                    { text:"预定买", value:2,label:'label-btn-other'},
                    { text:"已租", value:3,label:'label-btn-primary'},
                    { text:"已售", value:4,label:'label-btn-success'},
                ],
                parkStateList:[
                    { text:"待租", value:0,label:'label-btn-primary'},
                    { text:"已租", value:1,label:'label-btn-success'},
                ],
                staffTypeList:[
                    { text:"行政", value:0,label:'label-btn-other' },
                    { text:"保洁", value:1,label:'label-btn-success' },
                    { text:"安保", value:2,label:'label-btn-primary' },
                    { text:"客服", value:3,label:'label-btn-warning' },
                    { text:"维修", value:4,label:'label-btn-error' },
                ],
                priorityList:[
                    { text:"低级", value:0,color:'gray-color',label:'label-btn-warning'},
                    { text:"普通", value:1,color:'base-color',label:'label-btn-primary'},
                    { text:"高级", value:2,color:'danger-color',label:'label-btn-other'},
                ],
                orderTypeList:[
                    { text:"未开始", value:0,color:'gray-color',label:'label-btn-warning'},
                    { text:"进行中", value:1,color:'base-color',label:'label-btn-primary'},
                    { text:"已完成", value:2,color:'success-color',label:'label-btn-success'},
                ],
                parkingTypeList:[
                    { text:"不限", value:0,label:'label-btn-primary'},
                    { text:"固定", value:1,label:'label-btn-success'},
                    { text:"非固定", value:2,label:'label-btn-warning'},
                ],
                leaseTypeList:[
                    { text:"月租车", value:0,label:'label-btn-primary'},
                    { text:"临时车", value:1,label:'label-btn-success'},
                ],
                isPrepaymentTypeList:[
                    { text:"表内结算", value:1,label:'label-btn-primary'},
                    { text:"系统结算", value:2,label:'label-btn-success'},
                ],
                equipmentStatusList:[
                    { text:"离线", value:0,label:'label-btn-warning'},
                    { text:"在线", value:1,label:'label-btn-success'},
                ],
                newsTargetList:[
                    { text:"个人用户", value:1,label:'label-btn-error' },
                    { text:"管委会", value:2,label:'label-btn-other' },
                    { text:"园区", value:4,label:'label-btn-success' },
                    { text:"企业", value:8,label:'label-btn-primary' },
                    { text:"机构", value:16,label:'label-btn-warning' },
                ],
                backUserTypeList:[ //这个暂时没用到
                    { text:"个人用户", value:1 }, //要登录小程序 小程序要加身份切换
                    { text:"总后台", value:2 },
                    { text:"管委会", value:4 },
                    { text:"园区", value:8 }, //员工要登录小程序
                    { text:"企业", value:16 }, //企业要登录小程序，企业员工也要登录小程序，还要支持身份切换
                    { text:"机构", value:32 },
                ],
                faultStateList:[ //维修状态
                    { text:"待处理", value:0,color:'warning-color',label:'label-btn-warning' },
                    { text:"维修完成", value:1,color:'success-color',label:'label-btn-success' },
                    { text:"维修失败", value:2,color:'danger-color',label:'label-btn-error' },
                ],
                borrowStateList:[
                    { text:"未还", value:0,color:'danger-color',label:'label-btn-error' },
                    { text:"在库", value:1,color:'success-color',label:'label-btn-success' },
                ],
                repairStateList:[
                    { text:"维修中", value:0,color:'base-color',label:'label-btn-warning' },
                    { text:"正常", value:1,color:'success-color',label:'label-btn-success' },
                ],
                financeTypeList:[
                    { text:"收入", value:0,label:'label-btn-primary' },
                    { text:"支出", value:1,label:'label-btn-success' },
                ],
                orderTypeList:[
                    { text:"订水", value:0,label:'label-btn-primary'},
                    { text:"订餐", value:1,label:'label-btn-warning' },
                ],
                trainTypeList:[
                    { text:"线上", value:0,label:'label-btn-primary' },
                    { text:"线下", value:1,label:'label-btn-success' }
                ],
                jihuoTypeList:[
                    { text:"未激活", value:0,color:'gray-color',label:'label-btn-warning'  },
                    { text:"激活", value:1,color:'success-color',label:'label-btn-success'  }
                ],
                applyTypeAry:[
                    {value:"0",text:"申请中",color:'base-color',label:'label-btn-warning'},
                    {value:"1",text:"已通过",color:'success-color',label:'label-btn-success'}
                ],
                miniTypeList:[
                    {value:"0",text:"小程序-人才",label:'label-btn-warning'},
                    {value:"1",text:"小程序-企业员工",label:'label-btn-primary'},
                    {value:"2",text:"小程序-物业员工",label:'label-btn-success'}
                ],
            }
        }
    },
    methods: {
    }
}
export default mixin